package com.numbfish.ch41_ex03_oauth2_resource.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@CrossOrigin(origins = "*")
@RestController
public class DemoController {
    @GetMapping("/demo")
    public Authentication demo(Authentication a){
        return a;
    }
}
